//
//  NFindDetailBottomView.m
//  News
//
//  Created by zhangtao on 2018/11/4.
//  Copyright © 2018年 zt.td. All rights reserved.
//

#import "NFindDetailBottomView.h"

@implementation NFindDetailBottomView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        
        self.backgroundColor = [UIColor whiteColor];
        
        UIImageView *imgV = [[UIImageView alloc]initWithFrame:CGRectMake(10, tabBarHeight/2-9, 18, 18)];
        imgV.image = [UIImage imageNamed:@"48-48ss"];
        [self addSubview:imgV];
        
        _tf = [[UITextField alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgV.frame)+10, tabBarHeight/2-12, ACEWidth-112-45, 24)];
        _tf.placeholder = @"说说我的看法...";
        [self addSubview:_tf];
        
        UIButton *more = [[UIButton alloc]initWithFrame:CGRectMake(ACEWidth-34, tabBarHeight/2-12, 24, 24)];
        [more setImage:[UIImage imageNamed:@"48-48xslh"] forState:UIControlStateNormal];
        [self addSubview:more];
        
        _likeBtn = [[UIButton alloc]initWithFrame:CGRectMake(ACEWidth-24*2-25, tabBarHeight/2-12, 24, 24)];
        [_likeBtn setImage:[UIImage imageNamed:@"newHead"] forState:UIControlStateNormal];
        [self addSubview:_likeBtn];
        
        _msgBtn = [[UIButton alloc]initWithFrame:CGRectMake(ACEWidth-24*3-45, tabBarHeight/2-12, 24, 24)];
        [_msgBtn setImage:[UIImage imageNamed:@"newMsg"] forState:UIControlStateNormal];
        [self addSubview:_msgBtn];
        
        UILabel *top = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, ACEWidth, 1)];
        top.backgroundColor = [UIColor groupTableViewBackgroundColor];
        [self addSubview:top];
    }
    return self;
}

@end
